import { HTTP } from '../utils/http.js'
class walktohomeHttp extends HTTP {
  //首页数据
  StepEarnBeanIndex (data) {
    return this.request({
      url: 's/luckdraw/StepEarnBeanIndexV2',
      method: 'POST',
      data: data,
      
    })
  }
  // 商品推荐、相似推荐
  GetRecommend (data) {
    return this.request({
      url: 'goods/HotGoodsRecommend',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  //走路领取亲友分成幸运豆
  getAddFriendPean (data) {
    return this.request({
      url: 's/luckdraw/StepAddFriendPean',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  //走路领取幸运豆
  getMyStepAddPean (data) {
    return this.request({
      url: 's/luckdraw/StepAddPean',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  //豆子翻倍
  getPeaDouble (data) {
    return this.request({
      url: 's/lottery/PeaDouble',
      method: 'POST',
      data: data,
      isShowLoading:false
    })
  }
  //添加好友
  AddStepFriend (data) {
    return this.request({
      url: 's/luckdraw/AddStepFriend',
      method: 'POST',
      data: data,
      isShowLoading:false,
      isShowerrMsg:false
    })
  }
  
}

export { walktohomeHttp }
